﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MapperConfig.cs" company="ecblog.codeplex.com">
//   emrecoskun.net - ibrahimatay.com
// </copyright>
// <summary>
//   Defines the MapperConfig type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace EcBlog
{
    using AutoMapper;

    using EcBlog.Models;

    public class MapperConfig
    {
        internal static void RegisterMaps()
        {
            Mapper.CreateMap<Comment, CommentHistory>();
            Mapper.CreateMap<Layout, LayoutHistory>();
            Mapper.CreateMap<Page, PageHistory>();
            Mapper.CreateMap<SiteSetting, SiteSettingHistory>();
            Mapper.CreateMap<Tag, TagHistory>();
            Mapper.CreateMap<User, UserHistory>();
        }
    }
}